<template>
	<view>
		<zy-search :is-focus="true" theme="circle" :show-want="true"
		:hot-list="hotList" @getSearchText="getSearchText" :hList="hList"></zy-search>
	</view>
</template>

<script>
	import zySearch from "@/components/zy-search/zy-search.vue";
	export default {
		components: {
			zySearch
		},
		data() {
			return {
				hotList: ['违法','违法2','违法3','违法4']	,//初始化推荐列表
				hList:uni.getStorageSync('search_cache')
			};
		},
		onShow() {},
		methods: {
			getSearchText(e) {
				// uni.showToast({
				// 	title:'回调的搜索信息: ' + e,
				// 	icon:"none"
				// })
				uni.navigateTo({
					url: "./lawList?keyword=" + e						
				})
				
			}
		},
	}
</script>

<style lang="scss">

</style>
